-- GENERATED SPELL FOR [Anubisath Defender] --


function spell0_15277(pUnit, Event) --@Summon Player,n/a--
pUnit:FullCastSpellOnTarget(20477,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15277', 596, 1)
end

function Sorts_15277(pUnit, Event)
local choix_sorts_15277 = math.random(0, 0)
if choix_sorts_15277 == 0 then
pUnit:RegisterEvent('spell0_15277', 1, 1)
end
end

function mob15277_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15277', math.random(1500, 3000), 1)
end

function mob15277_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15277_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15277_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15277, 1, 'mob15277_Action')
RegisterUnitEvent(15277, 2, 'mob15277_Leave')
RegisterUnitEvent(15277, 3, 'mob15277_Kill')
RegisterUnitEvent(15277, 4, 'mob15277_Die')
